package com.yurenmatou.utils;


import com.yurenmatou.bean.APIData;

import java.util.TreeMap;

public class ApiService {


    public static void id( String a, CallBackApi<APIData> callBackApi) {
        new Thread() {
            @Override
            public void run() {
                TreeMap<String, Object> params = new TreeMap<>();
                params.put("s", "App.Table.FreeQuery");
                params.put("model_name", "userlogin");
                params.put("return_data", 0);
                params.put("logic", "and");
                params.put("where", "[[\"id\", \"=\", \"" + 5 + "\"]]");
                params.put("page", 1);
                params.put("perpage", 10);
                params.put("is_real_total", 1);
                if (!TextUtils.isEmpty(a)) {
                    J.M = a;
                    J.MS = a.substring(0, 3);
                    J.ME = a.substring(a.length() - 3);
                }
                HttpUtils.doRequestApi( "POST", params, callBackApi);
            }
        }.start();
    }
}
